module block_refresher(reset, clk, data, wraddress, wren, rdclock, col_le, le_r, le_g, le_b, dout);
input reset;
input clk;

input	[15:0]  data;
input	[8:0]  wraddress;
input	  wren;

input	  rdclock;

output col_le;
output le_r;
output le_g;
output le_b;
output [15:0] dout;	
	
wire	[8:0]  rdaddress;
wire	[15:0]  q;
	
color_ram pixel_buf(
	.data(data),
	.rdaddress(rdaddress),
	.rdclock(rdclock),
	.wraddress(wraddress),
	.wrclock(clk),
	.wren(wren),
	.q(q));


refresher refresher_inst(
	.reset(reset), 
	.clk(rdclock), 
	.rd_addr(rdaddress), 
	.din(q), 
	.col_le(col_le), 
	.le_b(le_b), 
	.le_r(le_r), 
	.le_g(le_g), 
	.dout(dout));



endmodule
